<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

    <title>订单管理</title>

    <link href="../AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
    <link href="../AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">
    <link href="../layui/css/layui.css" rel="stylesheet" type="text/css" />

    <link href="../css/personal.css" rel="stylesheet" type="text/css">
    <link href="../css/orstyle.css" rel="stylesheet" type="text/css">

    <script src="../AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
    <script src="../AmazeUI-2.4.2/assets/js/amazeui.js"></script>

</head>

<body>
<!--头 -->
<header>
    <article>
        <div class="mt-logo">
            <!--顶部导航条 -->
            <div class="am-container header">
                <ul class="message-l">
                    <div class="topMessage">
                        <div class="menu-hd">
                            <a href="#" target="_top" class="h">亲，请登录</a>
                            <a href="#" target="_top">免费注册</a>
                        </div>
                    </div>
                </ul>
                <ul class="message-r">
                    <div class="topMessage home">
                        <div class="menu-hd"><a href="#" target="_top" class="h">商城首页</a></div>
                    </div>
                    <div class="topMessage my-shangcheng">
                        <div class="menu-hd MyShangcheng"><a href="#" target="_top"><i
                                class="am-icon-user am-icon-fw"></i>个人中心</a></div>
                    </div>
                    <div class="topMessage mini-cart">
                        <div class="menu-hd"><a id="mc-menu-hd" href="#" target="_top"><i
                                class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong
                                id="J_MiniCartNum" class="h">0</strong></a></div>
                    </div>
                    <div class="topMessage favorite">
                        <div class="menu-hd"><a href="#" target="_top"><i
                                class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a>
                        </div>
                    </div>
                </ul>
            </div>

            <!--悬浮搜索框-->

            <div class="nav white">
                <div class="logoBig">
                    <li><img src="../images/logobig.png"/></li>
                </div>

                <div class="search-bar pr">
                    <a name="index_none_header_sysc" href="#"></a>
                    <form>
                        <input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索"
                               autocomplete="off">
                        <input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
                    </form>
                </div>
            </div>

            <div class="clear"></div>
        </div>
        </div>
    </article>
</header>
<div class="nav-table">
    <div class="long-title"><span class="all-goods">全部分类</span></div>
    <div class="nav-cont">
        <ul>
            <li class="index"><a href="#">首页</a></li>
            <li class="qc"><a href="#">闪购</a></li>
            <li class="qc"><a href="#">限时抢</a></li>
            <li class="qc"><a href="#">团购</a></li>
            <li class="qc last"><a href="#">大包装</a></li>
        </ul>
        <div class="nav-extra">
            <i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
            <i class="am-icon-angle-right" style="padding-left: 10px;"></i>
        </div>
    </div>
</div>
<b class="line"></b>
<div class="center">
    <div class="col-main">
        <div class="main-wrap">

            <div class="user-order">

                <!--标题 -->
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">订单管理</strong> /
                        <small>Order</small></div>
                </div>
                <hr/>

                <div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

                    <ul class="am-avg-sm-5 am-tabs-nav am-nav am-nav-tabs">
                        <li class="am-active"><a href="#tab1">所有订单</a></li>
                        <li><a href="#tab2">待支付</a></li>
                        <li><a href="#tab3">待发货</a></li>
                        <li><a href="#tab4">待收货</a></li>
                        <li><a href="#tab5">待评价</a></li>
                    </ul>

                    <div class="am-tabs-bd">
                        <div class="am-tab-panel am-fade am-in am-active" id="tab1">




                        </div>
                        <div class="am-tab-panel am-fade" id="tab2">


                        </div>
                        <div class="am-tab-panel am-fade" id="tab3">

                        </div>
                        <div class="am-tab-panel am-fade" id="tab4">

                        </div>

                        <div class="am-tab-panel am-fade" id="tab5">

                        </div>
                    </div>

                </div>
            </div>
        </div>
        <!--底部-->
        <div class="footer">
            <div class="footer-hd">
                <p>
                    <a href="#">恒望科技</a>
                    <b>|</b>
                    <a href="#">商城首页</a>
                    <b>|</b>
                    <a href="#">支付宝</a>
                    <b>|</b>
                    <a href="#">物流</a>
                </p>
            </div>
            <div class="footer-bd">
                <p>
                    <a href="#">关于恒望</a>
                    <a href="#">合作伙伴</a>
                    <a href="#">联系我们</a>
                    <a href="#">网站地图</a>
                    <em>© 2015-2025 Hengwang.com 版权所有</em>
                </p>
            </div>
        </div>
    </div>
    <th:block th:include="informationEnd"/>
</div>

<script type="text/html" id="orderTemple">

    <div class="order-top">
        <div class="th th-item">
            <td class="td-inner">商品</td>
        </div>
        <div class="th th-price">
            <td class="td-inner">单价</td>
        </div>
        <div class="th th-number">
            <td class="td-inner">数量</td>
        </div>
        <div class="th th-operation">
            <td class="td-inner">商品操作</td>
        </div>
        <div class="th th-amount">
            <td class="td-inner">合计</td>
        </div>
        <div class="th th-status">
            <td class="td-inner">交易状态</td>
        </div>
        <div class="th th-change">
            <td class="td-inner">交易操作</td>
        </div>
    </div>
    {{# layui.each(d,function(index,order){ }}
    <div class="order-main">
        <div class="order-list">
            <div class="order-status5">
                <div class="order-title">
                    <div class="dd-num">订单编号：<a href="javascript:;">{{order.orderCode}}</a></div>
                    <span style="margin-left: -30px">成交时间：{{order.orderDate}}</span>
                </div>
                <div class="order-content">
                    <div class="order-left">
                        {{# layui.each(order.list,function(index,orderDetail){ }}
                        <ul class="item-list">
                            <li class="td td-item">
                                <div class="item-pic">
                                    <a href="#" class="J_MakePoint">
                                        <img src="{{orderDetail.productImg}}"
                                             class="itempic J_ItemImg">
                                    </a>
                                </div>
                                <div class="item-info">
                                    <div class="item-basic-info">
                                        <a href="#">
                                            <p>{{orderDetail.productName}}</p>
                                            <!--<p class="info-little">颜色：12#川南玛瑙
                                                <br/>包装：裸装 </p>-->
                                        </a>
                                    </div>
                                </div>
                            </li>
                            <li class="td td-price">
                                <div class="item-price">
                                   {{orderDetail.price}}
                                </div>
                            </li>
                            <li class="td td-number">
                                <div class="item-number">
                                    <span>×</span>{{orderDetail.amount}}
                                </div>
                            </li>
                            <li class="td td-operation">
                                <div class="item-operation">

                                </div>
                            </li>
                        </ul>
                        {{# });}}
                    </div>
                    <div class="order-right">
                        <li class="td td-amount">
                            <div class="item-amount">
                                合计：{{order.totalPrice}}
                              <!--  <p>含运费：<span>10.00</span></p>-->
                            </div>
                        </li>
                        <div class="move-right">
                            <li class="td td-status">
                                <div class="item-status">
                                    <p class="Mystatus">{{order.status}}</p>
                                    <!--<p class="order-info"><a href="orderinfo.html">订单详情</a>
                                    </p>
                                    <p class="order-info"><a href="logistics.html">查看物流</a>
                                    </p>-->
                                </div>
                            </li>
                            <li class="td td-change">
                                <div class="am-btn am-btn-danger anniu">
                                    删除订单
                                </div>
                            </li>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {{# });}}
</script>
<script type="text/javascript" src="/layui/layui.js"></script>

<script type="text/javascript">
    layui.use("layer",function () {
        var $ = layui.jquery;
        var laytpl = layui.laytpl;

        $.get("/order/selectOrderList",{status : ""},function(orders){
            laytpl($("#orderTemple").html()).render(orders,function (ht) {
                $("#tab1").html(ht);
            })
        })
        $.get("/order/selectOrderList",{status : "待支付"},function(orders){
            laytpl($("#orderTemple").html()).render(orders,function (ht) {
                $("#tab2").html(ht);
            })
        })
        $.get("/order/selectOrderList",{status : "待发货"},function(orders){
            laytpl($("#orderTemple").html()).render(orders,function (ht) {
                $("#tab3").html(ht);
            })
        })
        $.get("/order/selectOrderList",{status : "待收货"},function(orders){
            laytpl($("#orderTemple").html()).render(orders,function (ht) {
                $("#tab4").html(ht);
            })
        })
        $.get("/order/selectOrderList",{status : "待评价"},function(orders){
            laytpl($("#orderTemple").html()).render(orders,function (ht) {
                $("#tab5").html(ht);
            })
        })
    });
</script>
</body>

</html>